#include "bitmap.hpp"
#include "tools.hpp"
#include <cstdio>

int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;
    auto&     random = lxj::Random<int>::instance();

    lxj::Bitmap bm(8);
    for (int i = 0; i < random(5, 15); i++) {
        bm.add(random(-7, 8));
    }
    std::printf(bm.str().c_str());
    std::puts("");
    std::printf("%d\n", bm.count());

    return 0;
}